from application import app
# 导入蓝图
from web.views.index import route_index
from web.views.user.User import route_user
from web.views.static import route_static
from web.views.account.Account import route_account
from web.views.api import route_api
from web.views.food.Food import route_food
# 导入拦截器
from web.interceptors import AuthInterceptor
from web.interceptors import ErrorInterceptor

# 注册蓝图
app.register_blueprint(route_index, url_prefix="/")
app.register_blueprint(route_user, url_prefix="/user")
app.register_blueprint(route_static, url_prefix="/static")
app.register_blueprint(route_account, url_prefix="/account")
app.register_blueprint(route_api, url_prefix="/api")
app.register_blueprint(route_food, url_prefix="/food")
